/* =========================================
   GIAO DIỆN FRONTEND (CHỐNG GÃY VỠ)
   ========================================= */
#spa-eval-form-container, #spa-success-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
    color: #333;
}

#spa-eval-form-container * {
    box-sizing: border-box;
}

#spa-eval-form-container .spa-title {
    color: #ff4d85 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 0;
    line-height: 1.2;
}

#spa-eval-form-container .spa-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Các hàng input */
#spa-eval-form-container .spa-form-row { margin-bottom: 18px; position: relative; }
#spa-eval-form-container .spa-flex-row { display: flex !important; gap: 15px; flex-wrap: wrap; }
#spa-eval-form-container .spa-half { flex: 1; min-width: 250px; position: relative; }

#spa-eval-form-container input[type="text"], 
#spa-eval-form-container select, 
#spa-eval-form-container textarea {
    width: 100% !important; 
    padding: 12px 15px !important; 
    border: 1px solid #ccc !important; 
    border-radius: 8px !important; 
    font-size: 15px !important; 
    background: #fff;
    outline: none;
    box-shadow: none !important;
}
#spa-eval-form-container input[type="text"]:focus, 
#spa-eval-form-container textarea:focus,
#spa-eval-form-container select:focus { border-color: #ff4d85 !important; }

#spa-eval-form-container .currency-label { position: absolute; right: 15px; top: 12px; color: #888; font-weight: bold; z-index: 10;}

/* Gợi ý dịch vụ (Autocomplete) */
#spa-autocomplete-results {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; 
    border-radius: 0 0 8px 8px; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    max-height: 250px; overflow-y: auto;
}
#spa-autocomplete-results .ac-item { padding: 12px 15px; cursor: pointer; display: flex; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
#spa-autocomplete-results .ac-item:hover { background: #fff0f5; }
#spa-autocomplete-results .ac-name { font-weight: bold; color: #333; }
#spa-autocomplete-results .ac-price { color: #ff4d85; font-weight: bold; }

/* Thông báo SĐT */
#spa-eval-form-container .sdt-message { margin-top: 5px; font-size: 13px; font-style: italic; color: #d63638; display: none; }
#spa-eval-form-container .sdt-message.success { color: #2271b1; }

/* BẢNG MA TRẬN (ÉP BUỘC NẰM NGANG) */
#spa-eval-form-container .spa-matrix { 
    border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 20px; background: #fff;
}
#spa-eval-form-container .matrix-header { 
    display: flex !important; flex-direction: row !important; background: #fafafa; text-align: center; border-bottom: 1px solid #eee; padding: 10px 0; 
}
#spa-eval-form-container .matrix-row { 
    display: flex !important; flex-direction: row !important; text-align: center; border-bottom: 1px solid #eee; padding: 15px 0; align-items: center; 
}
#spa-eval-form-container .matrix-row:last-child { border-bottom: none; }

#spa-eval-form-container .col-title { flex: 2; text-align: left; padding-left: 15px; }
#spa-eval-form-container .col-title strong { display:block; font-size:15px; color:#333; }
#spa-eval-form-container .col-emoji, 
#spa-eval-form-container .col-radio { flex: 1; display: flex !important; flex-direction: column !important; justify-content: center; align-items: center; }

#spa-eval-form-container .col-radio input[type="radio"] { 
    transform: scale(1.5); accent-color: #ff4d85; cursor: pointer; margin:0; width: auto !important;
}

/* Nút Submit */
#spa-eval-form-container .spa-btn-submit,
#spa-success-container .spa-btn-submit {
    width: 100%; background: #ff4d85 !important; color: #fff !important; font-weight: bold; font-size: 18px; 
    padding: 15px !important; border: none !important; border-radius: 8px; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; display: block;
}
#spa-eval-form-container .spa-btn-submit:hover,
#spa-success-container .spa-btn-submit:hover { background: #e6396e !important; }